import { get, post, del } from "../util/request";
// 提交订单
export const addorder = (data) => {
  return post("/api/v1/orders", data);
};

// 获取订单
export const reqorder = (data) => get("/api/v1/orders", data);
//根据id获取订单详情
export const reqorderdetail = (id) => get("/api/v1/orders/" + id);
//根据id删除订单详情
export const reqdelorder = (id) => del(" /api/v1/orders/" + id);
// 批量删除购物车
export const reqdelorders = (ids) => post("/api/v1/orders/delmany", { ids }); // ids:ids
